package com.group4.xiao_ge_lai_yi_zhu.service;

import com.group4.xiao_ge_lai_yi_zhu.dao.UserDAO;
import com.group4.xiao_ge_lai_yi_zhu.domain.User;

/**
 * 注册页面的业务层
 * 处理注册相关的业务逻辑
 */
public class RegisterService {
    private UserDAO userDAO = new UserDAO();

    public boolean usernameExist(String username) {
        return userDAO.usernameExist(username);
    }

    public boolean userRegister(User user) {
        return userDAO.saveUserinfo(user);
    }

}
